﻿using System.Collections.Generic;

namespace ArtemisExtensions
{
    public sealed class MapTileManager
    {
        public MapTileManager()
        {
            tacticalTileList = new List<TacticalMapTile>();
        }

        public List<ArtemisExtensions.OverlandMapTile> overlandTileList;

        private List<ArtemisExtensions.TacticalMapTile> tacticalTileList;

        public void Initialize()
        {
            throw new System.NotImplementedException();

            //add all the tiles available to the list
            //can manually do this... or read from a file (better)
            //order is important as that determines the tile number
        }

        /// <summary>
        /// Add tile to this manager
        /// </summary>
        /// <remarks>Add the tile to the manager - based on the entry location in the List, assign a tile number to TacticalMapTile and return that number</remarks>
        /// <returns>Return the tile number reference</returns>
        public int AddTile(TacticalMapTile t)
        {
            throw new System.NotImplementedException();
        }

        public TacticalMapTile GetTile(TacticalMapTileReference t)
        {
            return tacticalTileList[t.TileNumber];
        }

        public OverlandMapTile GetTile(OverlandMapTileReference o)
        {
            return overlandTileList[o.TileNumber];
        }
    }
}